Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
spring-graphql-graphiql
module containinggraphiql
integration.graphiql
optional which user can pull in as a dependency.spring-graphql-graphiql
is a basic npm module which packages itself asa jar where boot autoconfig can integrate to.
some customisation like setting logo name to demonstrate how things are passed
from boot properties into a react app itself.
/graphiql
order to:/graphiql/explorer
/graphiql/explorer
to get context path under/graphiql/
main.js
from classpath to get html to load it under/graphiql/
config.js
as a way to pass configuration options from server sideand load those into react app. There are various long threads in GH and SO
discussing this problem and I chose to load settings from a server side.
webmvc-http
is as it used to be.webflux-websocket
can now use subscription which gets first greeting insteadof subscription request reply.
Other notes:
This is a draft POC, so tests and more work to npm project would be added
later to polish things a bit.
If looking ok then this would give better foundation to think about
security and other things we'd like to have on this layer. Having a full
blown module and react code in typescript makes it easier to tweak things
instead of trying to rely on public stuff on cdn as a static app relying on
an internet access.
Both
webmvc-http
andwebflux-websocket
you can use:With
webflux-websocket
when you use:Where you get:
Instead of: